package yx.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * BsPublicArchive entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bs_public_archive", catalog = "")
public class BsPublicArchive implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer archiveType;
	private String archiveName;
	private String archiveNo;
	private String rootPath;
	private String contentType;
	private String keyword;
	private Integer uploaderId;
	private String uploaderName;
	private Timestamp uploadTime;
	private String memo;

	// Constructors

	/** default constructor */
	public BsPublicArchive() {
	}

	/** full constructor */
	public BsPublicArchive(Integer archiveType, String archiveName, String archiveNo, String rootPath, String contentType, String keyword, Integer uploaderId, String uploaderName, Timestamp uploadTime, String memo) {
		this.archiveType = archiveType;
		this.archiveName = archiveName;
		this.archiveNo = archiveNo;
		this.rootPath = rootPath;
		this.contentType = contentType;
		this.keyword = keyword;
		this.uploaderId = uploaderId;
		this.uploaderName = uploaderName;
		this.uploadTime = uploadTime;
		this.memo = memo;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "ARCHIVE_TYPE")
	public Integer getArchiveType() {
		return this.archiveType;
	}

	public void setArchiveType(Integer archiveType) {
		this.archiveType = archiveType;
	}

	@Column(name = "ARCHIVE_NAME", length = 64)
	public String getArchiveName() {
		return this.archiveName;
	}

	public void setArchiveName(String archiveName) {
		this.archiveName = archiveName;
	}

	@Column(name = "ARCHIVE_NO", length = 64)
	public String getArchiveNo() {
		return this.archiveNo;
	}

	public void setArchiveNo(String archiveNo) {
		this.archiveNo = archiveNo;
	}

	@Column(name = "ROOT_PATH", length = 128)
	public String getRootPath() {
		return this.rootPath;
	}

	public void setRootPath(String rootPath) {
		this.rootPath = rootPath;
	}

	@Column(name = "CONTENT_TYPE", length = 128)
	public String getContentType() {
		return this.contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	@Column(name = "KEYWORD", length = 10)
	public String getKeyword() {
		return this.keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	@Column(name = "UPLOADER_ID")
	public Integer getUploaderId() {
		return this.uploaderId;
	}

	public void setUploaderId(Integer uploaderId) {
		this.uploaderId = uploaderId;
	}

	@Column(name = "UPLOADER_NAME", length = 32)
	public String getUploaderName() {
		return this.uploaderName;
	}

	public void setUploaderName(String uploaderName) {
		this.uploaderName = uploaderName;
	}

	@Column(name = "UPLOAD_TIME", length = 19)
	public Timestamp getUploadTime() {
		return this.uploadTime;
	}

	public void setUploadTime(Timestamp uploadTime) {
		this.uploadTime = uploadTime;
	}

	@Column(name = "MEMO")
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}